logger moved to seperate class