better error handling
bumped version to 0.0.7