repair repo structure