added relatied list and unlink, code fixes