updated comments - now uses cookie fallback (optional)