building repo structure