binary: make more idiomatic

see #25 for the discussion on this