fixes to allow static files to work.