updated psi plugin interface