fixed and strengthened cookies creation