new feature. log saving.