resource map alloc set up