seperate kfs api, compatible with node.js fs