send.c: debug through and fix auto-prefix code