only set alerta api server in one place
remove debug output