add back public API function, but mark as deprecated