cookie treatment implemented