structural changes and making binary name, args and thread count a cmd line argument