added direct output to root