added ugly, hacked, non-general param sweep code