almost done alert parsing