partial revert of c075d9f0a81e2335f9cfeed80fbd4ad73de4f8f9 ,centos7 otherwise breaks this logic