fixed sval wrapper utility script