fix to cache an instance of URI::Parser
add comments for 2 bugs