revising href parsing