added some server functions for dealing with the filesystem