rename session to client; enable dot syntax to subresources