add type argument to connectivity
add fields to connectivity