moved blockedPairs to api.py