make fileserver not dependent on express so middlware can be added