added user feedback on error cases