only write to screen if myid==0