sanitize likelihood now correctly prints error messages