slight refactor for sanity check while trying to debug chrome on windows, which has a bug that makes this library unusable :(