logger should be global