first attempt at Windows compatibility