sub command and class model added