throw exception if options are not set