added some CentOS code, fixed syntax