re-write all repos