update process opt and thread seperation