minor changes on logging