rewrite sendsig to eliminate pushing stuff by hand