upgrade EP for new merged QP.py