move from moten-util.googlecode