trying to fix batch path bug