updated to read config on init