add thread interface to filesystem