rm logger_old.js and refactor utils.js