write / writeln accept also id of root