fixes #7 checking if url exists