add allocator interface
fix in allocator