top-level files regeneration fixed