some work on opline output, incomplete