generating config file