get_page fixed, helper functions cleaned