added some validation and the archetype version