1.peer type added to support both link to user and link from user