added support for resque queuing