implemented the debug and blind mode