add state request support
fix small bug:)