bump ftw dependency to 0.0.40

Fixes #2000