evented parser for the layrz file format