refactor(bin): easier to test