add datatype for generating relations
rewrite relmap evaluator