refactor autolink parser