fix for bin script