remove logs, manage fromscratch to force new cycle
use argparse instead of optparse