change to use server_api_key from configs