fix urls and add case insensitivity