changed fileserve method