started to work on sigintHandling, not sorted yet