fix printing when output is not console