added signal handling for more signals