generating config