modified deploy script