added basic url parsing