added multi-threading for single node clusters