clean up deploy method.