pretty brutal MOL file parser