copy 2.2.0 code from Google Code (SVN)