refactor parse_args
one more check to drop stale links