updated wave viewer script