improve error message; catch uncaught exceptions
update package.json