cleanup mgmt script