add ability to configure cookie options