when constructing a resource, add its name to the object
0.3.3