bug fixes and new code for analysis of FlatFieldNode