start of lovely matlab parsing