on top of the rock overlooking the entire area lay the monastery, the "gota pabbatha rajamaha vihara", which had been a religious and administrative centre since the reign of king gajabahu i. the brahmi inscription on a rock next to the ancient shrine room is unique, being the sole evidence for the transfer of customs duties to a monastery in the indian ocean world at that period.