simpler logic around creating config file