added support F function for state
Merge branch 'master' of github.com:lessonhome/lessonhome