start of re-work
rebuild to allow parent records to be found