fixup prompt w/history number, remove obsolete pstat, increase history