make addAlert less stringly typed