added code in main to call init_signal