added ablity to load configuration from file.