cleanup logging and fix ore dictification bugs