add some limited error handling