multiple error fixes for centos