update paths and directories