updates directories