add torch and remove xbin flag permanently