added cleaner way to generate config files using runtime annotations