added error handling for 0.2.0