setting up the flushinput demo