got the basic generator working nicely