added support for delayed jobs