change output destination to file from console