linked ctypes to corresponding collections, closes #1