minor changes to the waiting packet mechnism
timeout implementation minor modifications