add option to disable logging in getPage()