playing around with clang and found a unit test I wasnt running, now 'make clang' can tell me about such things
creating more warnings and solving them, a bit better with const correctness