changes to support configuration file
changes for confgiration file / propose workaround to file descriptor exhaustion