add a small new function to retrieve variables from a config