more fixes to jvm initialization