add config param to pass the worker root_dir