auto cookie fallback, fix #5