make basic produce scripts work for structures