removed recursion
removed mruby generation of errors