fixes #22
Merge branch 'master' into 1.0