added external entity api