minor changes to support twitter entity matching in rails