wip: add allocator
3 files changed