refactor Filesystem::append