history.c - cleanups