unify handling of binary input and output