add: first cookie handling with some failed params 'version,expiry,secure'
improve: clean code organisation