add verbose output and version info to serial codes