integrate an option for logging