smarter immediate functions in the worker job