TEAM: initial support for cookies