collect sub state object comp state todo auto gener method stub implement except 