- added logging