simplify config parser more