added schema_func to dry schema