forgoten app code added, bug in app_glue_set_user_data fixed