decouple BamIo from Options struct