added the errors.rb and the catch