preprocessing config with ERB