addded shim for setImmedate