moved entity to the appframework