adaptation to work in IIS