removed global logging