added state and play commands