re-commit containing all new code for finding third leg of unfinished
fields and removed code originally copied from other plugin