updated to support debian / centos