a little cleanup of scripts, assuring page tables are consistent. api docs