adapting to the new jpc api