rebuild useful files