set state machin object handl object stm todo auto gener method stub implement except 