some funky resque work; might need to change this in the future