deploy script fixed