initialize traits and resource type maps