fixed global fail and unit tick!  works so that free units die last