some major revisions to cheats.pl