get some useful from https://github.com/bradfitz/camlistore