catching SIGINT function + small fixes