add resource naming and returnning respresentations