added applet stuff