add function to www serve the local dir