trying to get trap_signals working