matchLocal uses direct assignment
added uid setter