fix serveStatic bug, improve loading of public content.