moved send_directive into body