continuing work on error handling