localization now filters inactive units