adds links and pseudoclasses