fixed initialization problems for signalhandler