fix whitespaces, newlines and dereferencing in signal and broadcast