added basic cookie support, added specs for new option