diff --git a/inferfn/infer.c b/inferfn/infer.c
index 523360e46bef85f2af5b3030202b07215909ea77..b53ef09da7c55a8fb99e3ad84622ddc1dd5b74c6 100644
--- a/inferfn/infer.c
+++ b/inferfn/infer.c
@@ -12,7 +12,7 @@ void print_str2(char *s)
 
 static void send_response(const int fd, struct response *res)
 {
-	cgc_transmit(fd, res, sizeof(struct response));
+	write(fd, res, sizeof(struct response));
 }
 
 static void send_error_response(const int fd)
@@ -233,7 +233,7 @@ void commandLoop()
 
 	do {
 		clear_request(&req); 
-		int bytes_read = cgc_receive(fdin, &req, sizeof(struct request));
+		int bytes_read = read(fdin, &req, sizeof(struct request));
 		itox(bytes_read, s);
 		
 		print_str2("commandLoop(): ... bytes read: \n");
diff --git a/inferfn/infercallback.c b/inferfn/infercallback.c
index a4dae2780a13d2985b857d07aecf65408a648d0d..3a78187b36627139d328641bb9dbc3dc528ddb1b 100644
--- a/inferfn/infercallback.c
+++ b/inferfn/infercallback.c
@@ -38,13 +38,13 @@
 #define write_fd 1
 void print_str(char *s)
 {
-	write(write_fd,s,strlen(s));
+	cgc_transmit(write_fd,s,strlen(s));
 }
 void print_int(int x)
 {
 	char buf[100];
 	itox(x,buf);
-	write(write_fd,buf,strlen(buf));
+	cgc_transmit(write_fd,buf,strlen(buf));
 }
 #endif