add support for direction to arcs