clone of http://flemit.googlecode.com