cleanup things to make it work on centos