implemented link and unlink for node operations.