checkversion works now
merge zhouge's last work, checkversion can work now