switch legacy for archetypes + add some missing globals