catch errors in entry point