added deploy logic