fixes for signal handling