working error handling
0.2.1