started on a serial handler in C