can we use a logger here?