readlining and waiting deletes some input
like if you paste two lines it forgets the last ones if you wait before the next readline