store version and role in config