rework applet typedef