add redhat and centos support