deploy script adapted