changed how logger gets instantiated