parse links