added switch for old/new mathtree parser