fix log, add formatter