implemented --save-logs