deleted old conf file
catching errors and added error messages