updated exporting instructions to flag method