fix protocol version from "magic number"
remote repo abstractions
using remote repos for checking repo manifest