enhance bin script a bit