modify the check connection method
remove some unused files
ok