add a getState function on model Reveil