added serial output