Revert "hack: removed filesystem dependency"

This reverts commit 721685a817ed7b79ff473ffbe6911fe772edc271.