more fixes to run it without errors on centos