tweaked jvm script (made it more similar to gvm)