moving delay and flush to printer controller