improves resource generator andn spec
generator defaults to string