added high-level filesystem functions