added logging.c