setting up deploy functions