adding ComPortController changes for openPort method