handler for flat hierarchy
use flat hierarchy with -f