Fixed win case, added simple utils for debugging