partial revert of c075d9f0 ,centos7 otherwise breaks the newer logic