code cleanup
first step to tree-like data structure for KnockOut