flexible directory structures for sorting!  fixes #7