some more changes to make resque work