handle repos properly