adding cookie handling to httpBuilder