almost working sonar