updated to accept url input