add parse uri method