small modifications of logging