fixed the hack to be able to work with jars not run through setup.