add support alert, cookie, some fixes