fix warning and export a header