modified the parseUrl into static