improve ext call