handle deployment