update parseURI to fix #243
build for testing