add support for connectivity in plot