update some error handling