parser for simple tlv based file