clean up base path