added url parsing