improved REFER logging