changing root to relative paths