refactor and generify PF and model clases in prep for removal from jmonkey dep