removed setImmediate in favor of back compat