add link and unlink