updated deploy api