fix wrong signatures
disconnect function