TODO:
- test the rewritten 'output from commandline'.
- d-pointers
- unit tests
