moved config parser into public