making compatible with resque-loner