fixes for error handling web app