okay, problem solved. for some reason there was an invisible calibre running in background and whenever i started something new he just brought back the old one that was started before i set the variable. weird problem but probably windows fault not calibres