Revert "Revert "trying to intercept control messsages, but not working well""

This reverts commit a465de05048664f79622cc38a1169693ba42c2c3.