wip out dlist and fix allocation structures