add directive stateChecker
Merge pull request #1 from VladRezonans/directive

add directive stateChecker