port to RubyMotion