update gdcast.py