added and modified mode filter, not tested
modified PulseControl