RUBYMOTION_ENV is not defined errors...
some code changes