prepare for pstree-like output