the golden error

added a little bit of error support in... and tested it