added reflection for schema