some changes in pewtest.py