remove addEntity (use getEntity instead), make priority public and const