remove internal paths. (TODO fixit)