working version for archetypes