change the way how signal hander work