refined the centos update script