commented out serial
added signalErrors