moved config parser to conf