handle all type of links