catch syntax errors - fixes #12
0.3.2