profile first then config