added logging output