added return value of getConfig