started to introduce logging