quick fixes to run on Windows and Azure Websites