resource object, serialize, singleton