udpate complete and swap dir