throw when setSchema is called more than once