convert to generated spec classes