adding state info output
and level 0 problem