make deploy/undeploy scripts generic