simplified url parsing