new package structure, changes for JavaApplet