don't create pool object unless it is required