modified to use jme