added hook to resolve inline documents