dont use global logger variable