update cookies interface with type key and value
fix warnings
fix warnings