add support for applet