fixed grab-page script
more fixes