signal handling has been added