add multi repo support
add tests for multi repo support