a few patches for fs-repo and the repo API