logging and beginnings of refactoring for multi fields