use new deploy API correctly