adapting config