modifying to work with RubyMotion 2.0.0