rhel5 mode cleanup