clean up Mainscript 8820