added missing logic_error include