logging and graphing