fixed external.py