improved deploy script