made program beanstalk compatible