add some parameters to com_open and com_close