added email notification and fixed config_file path