update check_cookie in master