Fix missing root accounts when using --flat flag
Bump version number to 4.0.2
Release version 4.0.2

* fix missing root accounts when querying with --flat flag