WIP: finishing code to inherit fields