added crafty in globals