fix archetype generation