- added debug code for $page