move generic file server stuff out of the console server application