API for getting and setting pages, very crude