change on-disk format to use gob
needs pointer
add cpu profiler