add log for free, fix typo