add unified interface for accessing file system

**do not review yet**