WIP: works on windows on occations