require_relatives fixed, changed get_pages for pages