a style nitpick: I'd do this assert closer to where the host is instantiated (line 140).