add salt batch handling. Also refactors the look of the build config