refac to deploy