to access pages and take care of encoding