conver to v2 config structure