refactor fixlog