add helper.c and logging.c