sonar script