turning some warnings into debug
some fix for osx
cleaning signal class