make jvm & g_obj public
deduplicate methods and add virtual init
relase vars