try to debug set_page by adding logging and test