trying out gml constraints, needs more testing