removed / on insertpath if given.