implementing wave viewer script