moving resque stuff into gem