fixes for applet and jar