$url handling added