added timeout for consumer