much more concise sval utility