object creat submachin state todo auto gener method stub implement except 