improved url validation and exception handling
uncomment uneeded stuff