cookie lib check and doc update