added windows 8 compatibility