fix a major bug stopping gc
add more stuff for getPage