improved the process for selinux checks