removed xHasDefs, since I never needed to use it.