import from hg

imported from my old mercurial repo