snapshot of fbpool.py