removed hardcoding of config, returns array