logger changed to static