remove unused patch
correctly handle links