use curly braces. Also do we log this error anywhere?