api level 18 and optimize parsing of events