populate delivery lines. added metadata and formats to output. moved some methods around