fix up BASE_PATH