page_gen debugged