adjusted logging behavior