add internal setTimeout callback function hooks to allow plugins to intercept the functions