made logger optional