make it work again, added some defaults and cookies