move url bits into config