some base path related bug fixes