fix bin script and error report