deque wip
bug fixes