added windows 8.1 compatibility