removed some warnings, send_ack still needs get checked
fixes define