adds cookie support