fixed issues with urllib