add declare-internal-function