cleanup binscript