new endpoint for unpacking vars from varNames