removing torchffi dependency for signal