add default query config item, and handle timeout exception.