make download always return bytearray, converting bytearray to something for external use should be done in interoperator
implemented #19, partially implemented #6