added uncaught error handling