added support for arcs