change api to use admin settings instead of ini file