modify logging slightly