added getResources to memory to return the complete map