make it take a logger option