removed hardcoded statics, allow for local_settings