add local block cache
add --threaded option