fix config functions