cookie support - closes issue #17