use global variable for hooks
Warn if promise is rejected but not caught
auto-merge staging into master