modified for centos 5.9