adjustments to new perl versions (perl sucks)