wip: implement primary deallocation