generic signal handling
signals fix