a working generator of sorts