#3, add origin and hostname, fixed host
#2, fixed fragment to hash
#2, fixed fragment to hash
#3, add hostname test
#3, fixed query to search