update links to directories