add status machine