add centos 6, fedora support.

centos 7 support is currently broken