repair some stuff