bebetter url generation in header