gramamr cleanup