correct get-patch functions
proper borrowing of existing torus functions