added constructor parameters for FileStream access and share when reading config file