migrate clean scripts to compound