fix bug in module compilation, and work on filling in cheats