beta version, without all signals, and signal_hanler