static file serving and preview