some fixing in bsignal.py