added pext.py changes