updated to include RunCommand and thread control