start work for cent-7 compat
re-order and simplifiy
pid einz
Merge pull request #3 from nathwill/centos-7-compat

centos 7 compat