adding barrier
adding barrier & changing signal_hander