refactor http file server