helpfunctions for parse uri implementet. still not compiles.