(Bluefox) add get states by pattern
(Bluefox) improve delete adapter