optimisation to the MD2 parser. Closes #631