wip. finished repository and marshaling. created copy constructor for immutables, removed copy in builder