added retrieve state methods to client