setup cap for restarting and resque