fix perl warnings that spam logs