Try to really fix the url parsing and array code