refactor parsing of alert