untested fixes for newer pte and correct handling of a potentially
loaded alertsManager