replace template values with correct UES dependency values