FIX: set parsedUri before opening connection