final cleanup of archetype