fixing support for -d in serial and bridge