bug fixes, make error handling optional
1.0.1