refactoring tralloc_extensions