refine done message
support cookie