make getConfig public