added wildcard to catch all exceptions