set up resource allocator and make deserializers singleton