making the BAG_PATH check work again