prep work to make it an applet