added toBeanstalkd block