extensions refactored in tralloc_alloc