fix line endings
add raw checks in signals