adapt config