add scavenged cleanup method, convert to script after reading