work around shortcomings in wget/spectool