debugging corrections to osmosis batch file