almost working liblinks rules