creating a print script that deals with signals