added setImmediate/clearImmediate