add 20s time out during waiting for input.