#9: renamed module pathnames to connection_pathnames. refactoring code.
#10:#9: merged #9 to #10.