correct error handling
update npm version to 0.0.5