added error handling to microedit