updates base path