resolve problems with cookies