added metastates for idle, run1, etc