wip. added utility to convert span to byte array.