implemented process tree printing