last refraction and features

extract patches, search etc.