adjusted classloader calls. gradle run is working but distpackaging is not