Fix deref of dist entry
Remove debug reductions
phase enum