fix verify and nearby endpoint