bin script and cleanup