add subnamespace support in model
call parent constructor for classes that have a parent class