make schema a constructor arg