move generateConfig into its own module/bin