updated bin script