make logger an option