cleanup unit info functions