add logging
strip the log framework back out. optimize the optimize to not write as many files