bug fixes for a fresh build on centos