ifdef out the attach on signal code