add resource allocator