flush output after every command