added logging to page queries