remove useless code,and add a web api for client check.