debugging gate.py