add support for restart
add next block
fix the commandline arguments