added logging, finally