generate in subdirectory. fixes #14