add parse url method