changed the last line to parse the link instead of a local file