more refined pattern for amazon cookie setting