added the cgiscript to generate metadata