add proper flatten definition
Merge branch 'master' of github.com:jedws/s99