catch errors properly
1.0.1