modified broken script to allow spec file download