applet code moved out of mgg_2_20