added middleman deploy code