changes to use Dream in _class