started adding support for keypoint detection