cleanup logic about which ifreeze file is used per time