rth api refactored
access contours by instances