added god mode and fix extern error