completion: add a helper function to get config variables