added automatic URL parsing