simplify prepdref2.py