flush to console