exportable fix functions