(core) more shmpage refactoring