fixing mock flush method, printing more global flags