added more exception handling output