updated some bugs from the 'r' simple-contour prepend.