fix NewEntity APIs; add forgotten NewEntity API