make beanstalkd a class, not defined type