error handling and conf loading