prepare for bluebird usage in background thread