remove global variable
correctly handle alert parse and transform errors
BUG FIX: continue instead of return from thread