logger.c salvage some ram