added Optional dependency to Logger