add parse cookie method