old focal-distance code migrated from hg to github