update_market: URI => URL avoid redefinition error
added perror