flag function added. stubbed out reveal function.