added logging section