fixed console, added automatic log files