replace readlink