preparing config