update concurrency setting
add main fn