add common config parser