add a new option: EOS; fix typo.log() method