removed console flushing