fixed bugs when importing from wfdownloads 3.22, 3.21, 3.1x, ... & fixed? bugs, modernize code