added more functionality, normalise hashmaps emitted and consumed by OZW, better logging