added collect_logs